Double world champion Alonso finished third, eclipsed before his 140,000 strong home crowd by Brazilian Massa and the extraordinary Hamilton.
Ferrari's on-form Felipe Massa set the pace in Belgian Grand Prix free practice on Friday while world champion team mate Kimi Raikkonen again looked out of sorts.
Williams driver Felipe Massa has revealed that he considered quitting Formula One after Marussia driver Jules Bianchi's 160 miles-per-hour horror accident during the Japanese Grand Prix.
Ferrari promised to pull out all stops on Sunday to help Fernando Alonso claim the Formula One drivers title and with the help of a rulebook loophole they head to the season finale still in the fight.
The Brazilian banged wheels with the British rookie Lewis Hamilton at the first corner.
Lewis Hamilton became the first driver in Formula One history to finish all of his first three races on the podium.
Ferrari's Felipe Massa, recovering from serious head injuries, will wave the chequered flag at next week's potentially title-deciding Brazilian Formula One Grand Prix, organisers said on Thursday.
Formula One championship leader Lewis Hamilton ended Ferrari's domination of French Grand Prix practice with the fastest time in Saturday's final session.
Formula One champions Ferrari could replace stand-in driver Luca Badoer if the Italian does not raise his game significantly in Belgium next weekend.
Ferrari's Felipe Massa could hold the key to the Formula One championship in his home Brazilian Grand Prix on October 21, despite being out of the reckoning himself.
The Brazilian now looks much more like the real deal, no longer simply plugging a hole at Ferrari until someone better comes along.
Lewis Hamilton felt regret and relief in equal measure on Sunday after a wet Italian Grand Prix full of missed opportunities for Formula One's title contenders.
Felipe Massa said farewell to thousands of Ferrari fans in Italy on Sunday and received a trophy nearly as tall as him to celebrate his time with the Formula One team.
A disastrous pitstop sent Ferrari's title contender Felipe Massa from first to last in the Singapore Grand Prix Sunday.
Felipe Massa delivered his eagerly-awaited verdict on Ferrari's new Formula One car after the first day of testing on Tuesday, with sighs of relief likely to be heard around Maranello.
Injured Formula One driver Felipe Massa is recovering well and could walk out of a Budapest hospital within 10 days, his doctor said on Tuesday. Doctors brought Massa, last year's championship runner-up, out of an artificial coma on Monday and also took him off a respirator.
Ferrari would not swap Brazilian driver Felipe Massa for McLaren's Formula One world champion Lewis Hamilton, president Luca di Montezemolo said. Hamilton, 23, who became the youngest world title-winner after he edged Massa by snatching fifth place on the final bend of November's season-ending Brazilian Grand Prix, said last week that he would never leave McLaren.
Ferrari's Felipe Massa was quickest on Thursday's final day of Formula One testing for next week's German Grand Prix at Hockenheim while Giancarlo Fisichella crashed heavily in his Force India. The Brazilian, level on 48 points with world champion team mate Kimi Raikkonen and McLaren's Lewis Hamilton at the halfway point in the season, was the only driver to lap inside one minute 15 seconds with a best time of 1:14.989.
A simmering feud between Formula One's Lewis Hamilton and Felipe Massa threatened to explode on Sunday when the pair clashed again under the Singapore floodlights.
The 39-year-old German will test Ferrari's 2008 car in Spain next week along with reigning F1 champion Kimi Raikkonen.
Ferrari's Brazilian driver Felipe Massa got back behind the wheel of a Formula One car Monday less than three months after his life-threatening accident at the Hungarian Grand Prix. He drove the 2007 Ferrari race car at the Fiorano circuit near the Italian team's Maranello headquarters, Italian media reported.
Injured Formula One driver Felipe Massa is out of imminent life-threatening danger but is being kept under sedation to protect his brain after his accident, doctors said on Monday. Brazilian Massa fractured his skull in an accident during qualifying for the Hungarian Grand Prix on Saturday when he was hit on the head by a bouncing spring, weighing almost a kilo, that broke free from compatriot Rubens Barrichello's Brawn GP car.
Australian Daniel Ricciardo celebrated his first Formula One victory on Sunday in a Canadian Grand Prix that put Red Bull back on top of the podium and dealt Mercedes a first defeat of the season.
Renault boss Flavio Briatore dismissed rumours of Fernando Alonso moving out of the French team at the end of the 2008 season.
Ferrari's Felipe Massa won the Turkish Grand Prix from pole position for the third year in a row on Sunday after an enthralling tactical battle with McLaren's Lewis Hamilton.
Lewis Hamilton ended a long-running Formula One feud with Felipe Massa on Sunday by walking up to the Ferrari driver after the Brazilian Grand Prix and giving him a hug.
The Ferrari driver ruled out doing anything differently this year despite being beaten to the title by team mate Kimi Raikkonen last season.
Ferrari marked the 30th anniversary of the death of fan favourite Gilles Villeneuve on Tuesday with the Canadian's son Jacques behind the wheel of one of his cars at the Italian team's Fiorano test track.
Ferrari's Felipe Massa will miss Sunday's Hungarian Formula One Grand Prix after being hit on the helmet by debris in qualifying and being taken to hospital for surgery to a head wound, a team spokesman said.
Renault's Fernando Alonso took his first pole position in nearly two years on Saturday after a Hungarian Grand Prix qualifying session overshadowed by Ferrari's Felipe Massa suffering a heavy crash.
Ferrari's new champion Kimi Raikkonen was fourth on the timesheets.
Germany's Sebastian Vettel put returning compatriot Michael Schumacher in the shade on Saturday with pole position for Red Bull at the season-opening Bahrain Grand Prix. Schumacher, the seven times champion returning at the age of 41 after a three-year absence, qualified seventh for Mercedes.
The 35-year-old Williams driver, who won 11 races for Ferrari between 2006 and 2008 and finished overall runner-up to Lewis Hamilton in the 2008 world championship, is out of contract at the end of the year.
Felipe Massa denied that he has become Ferrari's number two driver and said on Thursday he is out to win in Hungary this weekend.
Susie Wolff became the first woman driver in 22 years to take part in a Formula One race weekend on Friday but her involvement in British Grand Prix practice lasted barely 20 minutes.
McLaren's Lewis Hamilton was stripped of victory in a thrilling Belgian Grand Prix after stewards decided he had gained an advantage by cutting a chicane during a last-gasp duel with Kimi Raikkonen.
Ferrari's Felipe Massa took pole position at the Turkish Grand Prix for the third year in a row on Saturday. Brazilian Massa, who has won at the Istanbul Park circuit for the past two years, will have McLaren's Heikki Kovalainen alongside him on the front row in Sunday's race.
The Ferrari driver finished ahead of F1 championship leader Lewis Hamilton and BMW Sauber's Robert Kubica in that order in Sunday's race in Valencia.